import request from "../../utils/request"
import axios from "axios";
export const getAssessmentTypeList=(data,listAssessmentTypeDto)=>{
        return request.get("/assessment/assessmentTypeList",{params:{
                        page:data.page,
                        pagisize:data.pagesize
                    }}
                )
}
export const addAssessmentType=(data)=>{
        return request.post("/assessment/addAssessmentType",{
                assessmentName:data.assessmentName,assessmentDescription:data.assessmentDescription,major:data.major})
}
export const updateAssessmentType=(data)=>{
        return request.put("/assessment/updateAssessmentType",{id:data.id,
                assessmentName:data.assessmentName,assessmentDescription:data.assessmentDescription,major:data.major})
}
export const deleteAssessmentType=(data)=>{
        return request.delete("/assessment/deleteAssessmentType",{params:{id:data.id}})
}
export const deleteAssessmentTypes=(data)=>{
        return request.delete("/assessment/deleteAssessmentTypes",{data})
}
export const getAssessmentQuestionList=(data)=>{
        return request.get("/assessmentQuestion/assessmentQuestionList",{data:{data}})
}